import axios from "../axios.js";

const users = {
    login(data) {
        return axios({
            url: "/users/login",
            method: "POST",
            data,
        });
    },
    register(data) {
        return axios({
            url: "/users/register",
            method: "POST",
            data,
        });
    },
    getUserInfo() {
        return axios({
            url: "/users/getUserInfo",
            method: 'GET',
        })
    }
};


export default users;